import request from '@/utils/request';

/**
 * 获取支付笔数数据
 */
export async function getPayNumList() {
  const res = await request.get(
    'https://cdn.eleadmin.com/20200610/analysis-pay-num.json'
  );
  if (res.data.code === 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
// 财务明细统计
export async function statistics(data) {
  const res = await request.post('/home/statistics', data);
  if (res.data.code === 0) {
    return res.data;
  }
  return Promise.reject(new Error(res.data.message));
}
